#!/usr/bin/ruby -w
#
# $Id: customer_content_search1,v 1.2 2010/02/20 16:49:12 ianmacd Exp $

require 'amazon/aws/search'

include Amazon::AWS
include Amazon::AWS::Search

ccs = CustomerContentSearch.new( 'ian@caliban.org' )
ccs.response_group = ResponseGroup.new( 'CustomerInfo' )

req = Request.new
req.locale = 'us'

resp = req.search( ccs )
cust = resp.customer_content_search_response.customers.customer

printf( "Customer's ID is %s.\n", cust.customer_id )
printf( "Customer's nickname is %s.\n", cust.nickname )
printf( "Customer's location is %s.\n", cust.location.user_defined_location )
